package cn.itcast.bos.base.service;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import cn.itcast.bos.domain.base.Courier;
import cn.itcast.bos.domain.base.FixedArea;
import cn.itcast.bos.domain.base.SubArea;
import cn.itcast.bos.domain.base.TakeTime;

@Path("/")
@Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_ATOM_XML})
@Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_ATOM_XML})
public interface FixedAreaService {

	void AddFixedArea(FixedArea fixedArea);
	public  Page showFixedArea(Specification<FixedArea> spec,Pageable pageable);
	List<Courier> getgetCourier();
	List<TakeTime> getTaketime();
	void fixedArea_associationCourierToFixedArea(String id, Integer courierId,
			Integer takeTimeId);
	
	@Path("fixedArea")
	@GET
	public FixedArea findById(@QueryParam("id")String id);
	
}
